package com.rightsidetech.trade.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.PageRequest;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.trade.dtos.request.integral.IntegralOperateRecordReq;
import com.rightsidetech.trade.dtos.request.integral.IntegralSaveReq;
import com.rightsidetech.trade.dtos.request.integral.LogisticsOrderNoReq;
import com.rightsidetech.trade.dtos.response.integral.IntegralConvertRecordResp;
import com.rightsidetech.trade.dtos.response.integral.IntegralOperateRecordResp;
import com.rightsidetech.trade.dtos.response.integral.IntegralOrderDetailResp;
import com.rightsidetech.trade.entity.TdIntegralOrder;

import java.util.List;

public interface TdIntegralOrderService {

    ResponseData<String> saveOrder(IntegralSaveReq req);

    ResponseData<PageInfo<IntegralConvertRecordResp>> orderPage(PageRequest req,Long storeId);

    ResponseData<IntegralOrderDetailResp> orderDetail(Long id,String orderNo);

    ResponseData<PageInfo<IntegralOperateRecordResp>> operateRecordPage(IntegralOperateRecordReq req);

    List<IntegralOperateRecordResp> operateRecordList(IntegralOperateRecordReq req);

    ResponseData logisticsOrderNo(LogisticsOrderNoReq req);

   TdIntegralOrder selectByOrderNo(String orderNo);

   int updateByPrimaryKeySelective(TdIntegralOrder order);
}
